import { requestPort } from '@/utils/request.js';
//获取vip列表
export function getVipList(params) {
  return requestPort({
    url: '/api/Wendavipuser/getCombo',
    method: 'POST',
    params: params
  });
}

//获取问答券列表
export function getTicketList(params) {
  return requestPort({
    url: '/api/Wendacoupon/getList',
    method: 'POST',
    params: params
  });
}

//获取开通会员会员确认
export function vipConfirm(params) {
  return requestPort({
    url: '/api/Wendavipuser/getPayVip',
    method: 'POST',
    params: params
  });
}

//开通会员支付
export function payment(params) {
  return requestPort({
    url: '/api/Wendavipuser/payVip',
    method: 'POST',
    params: params
  });
}

//问答券支付详情接口
export function paymentTicket(params) {
  return requestPort({
    url: '/api/Wendacoupon/getPaycoupon',
    method: 'POST',
    params: params
  });
}

//问答券支付接口
export function confirmPaymentTicket(params) {
  return requestPort({
    url: '/api/Wendacoupon/pay_coupon',
    method: 'POST',
    params: params
  });
}


//兑换码
export function checkCode(params) {
  return requestPort({
    url: '/api/exchangecode/checkcode',
    method: 'POST',
    params: params
  });
}